package com.gf.pokemon.platform.utils;

import com.gf.pokemon.dto.LoginUser;

public class LoginUserHelper {
	
	private static ThreadLocal<LoginUser> loginUserHepler = new ThreadLocal<LoginUser>();

	public static void setLoginUser(LoginUser loginUser){
		loginUserHepler.set(loginUser);
	}
	
	public static LoginUser getLoginUser(){
		return loginUserHepler.get();
	}
	
	public static void removeLoginUser(){
		loginUserHepler.set(null);
	}
	
}
